<%@page import="java.util.Enumeration"%>
<%@page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy"%>
<%@page import="com.oreilly.servlet.MultipartRequest"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>input result</title>

<link rel="stylesheet" href="./css/member.css">
<script src="./js/member.js"></script>

</head>
<body>
<h1>입력 결과창</h1>

<% 
int size = 10*1024*1024;
String savedir = "F:\\java work space\\web_1406\\WebContent\\memberphoto\\";
String orifile="";
String sysfile="";
MultipartRequest multi=null;
try{
	multi = new MultipartRequest(
			request,
			savedir,
			size,
			"utf-8",
			new DefaultFileRenamePolicy()		
			);
	
	Enumeration file = multi.getFileNames();
	String tempfile = (String)file.nextElement();
	orifile = multi.getOriginalFileName(tempfile);
	sysfile = multi.getFilesystemName(tempfile);
	
	out.print("아이디 : "+ multi.getParameter("mid")+"<br>");
	out.print("이름 : "+multi.getParameter("irum")+"<br>");
	out.print("원본파일명 : "+orifile+"<br>");
	out.print("지정파일명 : "+sysfile+"<br>");
	
	
	
}catch(Exception e){
	e.printStackTrace();
}


%>
<jsp:useBean id="member" class="bean.MemberVo" scope="page"></jsp:useBean>
<jsp:setProperty property="*" name="member"/>






<input type="button" value="목록으로" id="btnlist">

<script>inputinit();</script>
</body>
</html>